package com.ruoyi.tongban.androidapi.util;

import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.tongban.service.IFacePersonService;
import com.ruoyi.tongban.service.IFaceTvDeviceService;

/**
 * @Description
 * @Author caiyanshan
 * @Date 2021/4/21 10:54
 * @Param
 * @Return
 */
public class AndroidBeanUtils {
  
  private static IFaceTvDeviceService faceTvDeviceService;
  
  private static IFacePersonService facePersonService;
  
  public static IFaceTvDeviceService getFaceTvDeviceService(){
    if(faceTvDeviceService == null){
      faceTvDeviceService = SpringUtils.getBean(IFaceTvDeviceService.class);
    }
    return faceTvDeviceService;
  }
  
  public static IFacePersonService getFacePersonService(){
    if(facePersonService == null){
      facePersonService = SpringUtils.getBean(IFacePersonService.class);
    }
    return facePersonService;
  }
  
}
